#Quais instituições importam? ##Banco: World Justice Project ###148 obs. of 8 variables ####variável resposta (ausencia_corrupcao)
#Dados de treino e teste ###Associação
## [1] "# Resumo do Modelo de Regressão Linear"
##
## Call:
## lm(formula = .outcome ~ ., data = dat)
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.159243 -0.030074 0.001307 0.033510 0.161881
##
## Coefficients: (1 not defined because of singularities)
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 0.03090 0.06883 0.449 0.654553
## acesso_informacao 0.14985 0.07661 1.956 0.053537 .
## controle_legislativo -0.39158 0.08668 -4.517 1.87e-05 ***
## controle_judiciario 0.59496 0.07613 7.815 9.25e-12 ***
## auditoria_independente 0.23546 0.06583 3.577 0.000559 ***
## controle_do_crime 0.35673 0.05925 6.021 3.61e-08 ***
## Low -0.10001 0.03159 -3.166 0.002103 **
## Upper_middle -0.07338 0.02172 -3.379 0.001073 **
## Lower_middle -0.11732 0.02732 -4.294 4.38e-05 ***
## High NA NA NA NA
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.05946 on 91 degrees of freedom
## Multiple R-squared: 0.9153, Adjusted R-squared: 0.9079
## F-statistic: 123 on 8 and 91 DF, p-value: < 2.2e-16
## [1] "# Correlação entre Valores Observados e Preditos"
## observado predito
## observado 1.0000000 0.9147515
## predito 0.9147515 1.0000000
##Gráfico de importancia das variaveis
### Gráficos e seletores
#Tabela Interativa
#Gráficos e seletores
## package 'shiny' successfully unpacked and MD5 sums checked
## package 'leaflet' successfully unpacked and MD5 sums checked
##
## The downloaded binary packages are in
## C:\Users\daly_\AppData\Local\Temp\RtmpwLtZyD\downloaded_packages
#Cluster